home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-68k-src
/
machines
/
amiga68k
/
libsrc
/
string
/
memchr.c
next >
Wrap
C/C++ Source or Header
|
1999-01-01
|
156b
|
9 lines
#include <string.h>
void *memchr(const void *s,int c,size_t n)
{
char *p=(char *)s;
while(n) {n--;if(*p==c) return(p); else p++;}
return(0);
}